import Vue from "vue"
import VueRouter from "vue-router"
Vue.use(VueRouter)
const routes =[
    {
        path: "/",
        name: 'login',
        component: ()=> import("../components/login")
    },
    {
        path: "/register",
        name: 'register',
        component: ()=> import("../components/register")
    },
    {
        path: "/index",
        name: 'index',
        component: ()=> import("../components/index")
    }
]
const router = new VueRouter({
    routes,
})

export default router;